package com.guoguo.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Param;

import com.guoguo.entity.PointFlow;

/**
 * Created by Administrator on 2017/10/24 0024.
 */
public interface PointFlowMapper {

    int insertSelective(PointFlow pointFlow);
    
    Integer selectInvitDayCount(@Param("userId")String userId,@Param("nowDate") Date nowDate);

	/**
	 * 扣除果币
	 * @param mhtOrderNo
	 * @param mhtOrderAmt
	 * @return
	 */
	Integer updateDeductMoney(@Param("mhtOrderNo")String mhtOrderNo,@Param("mhtOrderAmt")String mhtOrderAmt);

	Integer selectInvitAllCount(@Param("userId")String userId);
}
